/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aaron.platform.dao;

import com.aaron.platform.entity.ItscDomainInfo;
import java.util.List;

/**
 * 组织DAO接口
 * @author chenzhuohua
 */
public class DomainDaoImp extends GenericDAO<ItscDomainInfo, Integer> implements IDomainDao {

    public DomainDaoImp(){
        super(ItscDomainInfo.class);
    }

    public ItscDomainInfo findByName(String domainName) {
        List<ItscDomainInfo> orgInfos = findByProperty(ItscDomainInfo.PROPERTY_DOMAIN_NAME, domainName);
        if (orgInfos != null) {
           return orgInfos.get(0);
        }
        return null;
    }    
}
